Crate defmt[−][src]
Expand description
A highly efficient logging framework that targets resource-constrained devices, like microcontrollers.
Check out the defmt book at https://defmt.ferrous-systems.com for more information about how to use it.
Compatibility
The defmt
wire format might change between major versions. Attempting to read a defmt stream
with an incompatible version will result in an error. This means that you have to update both
the host and target side if a breaking change in defmt is released.
Macros
assert | Just like the |
assert_eq | Just like the |
assert_ne | Just like the |
dbg | Just like the |
debug | Logs data at debug level. |
debug_assert | Just like the |
debug_assert_eq | Just like the |
debug_assert_ne | Just like the |
error | Logs data at error level. |
info | Logs data at info level. |
intern | Creates an interned string ( |
panic | Just like the |
timestamp | Defines the global timestamp provider for defmt. |
todo | Just like the |
trace | Logs data at trace level. |
unimplemented | Just like the |
unreachable | Just like the |
unwrap | Unwraps an |
warn | Logs data at warn level. |
write | Writes formatted data to a |
Structs
Debug2Format | An “adapter” type to feed |
Display2Format | An “adapter” type to feed |
Formatter | Handle to a defmt logger. |
Str | An interned string created via |
Traits
Format | Trait for types that can be formatted via defmt. |
Logger | Global logger acquire-release mechanism |
Write | Trait for defmt logging targets. |
Attribute Macros
global_logger | Defines the global defmt logger. |
panic_handler | Overrides the panicking behavior of |